<div class="form">
<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'horizontalForm',
    'type'=>'horizontal',
	'htmlOptions'=>array('enctype' => 'multipart/form-data'),
)); ?>

     	<fieldset>
		<legend>
			<span class="required">*</span> Wajib Diisi.
		</legend>

	<?php echo $form->errorSummary($model,'Opps!!!', null,array('class'=>'alert alert-error span12')); ?>
        		
   <div class="control-group">		
			<div class="span10">

	<?php echo $form->textFieldRow($model,'judul',array('class'=>'span5','maxlength'=>200)); ?>

	<?php echo $form->textAreaRow($model,'deskripisi',array('rows'=>2, 'cols'=>40, 'class'=>'span5')); ?>

	<div class="row">
	<div class="control-group ">
	<label class="control-label required" for="Post_detail">
	Isi
	<span class="required">*</span>
	</label>
	<div class="controls">
				<?php $this->widget('application.extensions.CKEditor', array(
			'model'=>$model,
			'attribute'=>'isi',
			'language'=>'en',
			'editorTemplate'=>'full',
)); ?>
	</div>
	</div>
	<?php echo $form->error($model,'isi'); ?>
	</div>

	<?php echo $form->hiddenField($model,'page_kategori_id',array('value'=>$_REQUEST['cat'],'class'=>'span5')); ?>

                       </div>   
  </div>

	<div class="form-actions" style="text-align:center">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'icon'=>'ok white',  
			'label'=>$model->isNewRecord ? 'Tambah' : 'Simpan',
		)); ?>
              <?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'reset',
                        'icon'=>'remove',  
			'label'=>'Reset',
		)); ?>
	</div>
</fieldset>

<?php $this->endWidget(); ?>

</div>
